﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BE.Web.Betfair.Interface.Entities;
using System.Collections.ObjectModel;
using System.Diagnostics;

namespace Betfair.Tests
{
    [TestClass]
    public class MarketTest
    {
        [TestMethod]
        public void TestMethod1()
        {
            ReadOnlyCollection<BetMarket> result = BetMarket.FromResponseString(ResponseData.MarketResponse);

            Assert.IsNotNull(result);
        }


        [TestMethod]
        public void TestMethod2()
        {
            Stopwatch curWatch = Stopwatch.StartNew();
            ReadOnlyCollection<BetMarket> result = BetMarket.FromResponseString(ResponseData.SEcondString);
            curWatch.Stop();

            Assert.IsNotNull(result);
        }
    }
}
